using UnityEngine;

public class GridElement : MonoBehaviour
{
	public UIGrid grid;

	private UIGrid _grid
	{
		get
		{
			if (grid == null)
			{
				grid = base.gameObject.GetComponentInParent<UIGrid>();
			}
			return grid;
		}
	}

	private void OnEnable()
	{
		_grid.repositionNow = true;
	}

	private void OnDisable()
	{
		_grid.repositionNow = true;
	}
}
